import { createApp } from "vue";
import App from "@/App.vue";
const app = createApp(App);
import ElementPlus from "element-plus";
//@ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
// element_plus国际化插件安装
app.use(ElementPlus, {
  locale: zhCn,
});
// svg图标插件配置代码
import "virtual:svg-icons-register";
// 注册全局组件组件
import globalComponents from "./components/index";
app.use(globalComponents);

// 注册路由
import router from "@/router";
app.use(router);
// 引入全局样式
import "@/styles/index.scss";
app.mount("#app");
